package states.gameplay.shapors;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;

public class Storagor extends Shapor {

	private Image _render;
	private int _capacity;
	
	public Storagor(int deployLimits, int cost, int deployPulses, int energyUpkeep, int capacity, Image render) {
		super(deployLimits, cost, deployPulses, 0, energyUpkeep);
		
		_render = render;
		
		_capacity = capacity;
	}

	@Override
	public void render(Graphics g, int x, int y) {
		//(render.getWidth()+cell_size)/2, startY + y * cell_size - (render.getHeight() + cell_size)/2
		_render.draw(x - (_render.getWidth())/2, y - (_render.getHeight())/2);
	}

	public int getStorage() {
		return _capacity;
	}

}
